package field_method04;

public class CircleText {
    public static void main(String[] args) {
        Circle circle = new Circle();
        circle.r = 5;
        //circle.area();
        //double pai = 3.1415926;
        circle.area2(3.14, 6);
        circle.area2(3.1415926,6);

        double r = 10;
        double pai = 3.14;

        double s = circle.area3(r,pai);

        System.out.println("半径为" + r + "的圆面积为" + s);
    }
}
